package com.zymail.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dorado
 * @since 2021-04-12
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName(resultMap = "BaseResultMap")
public class ZyUser implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 头像url
     */
    private String avatar;

    /**
     * 电话
     */
    private String phone;

    /**
     * openid
     */
    private String openid;

    /**
     * 创建时间
     */
    private LocalDateTime time;

    /**
     * 父类id, 当父类是0时表示没有父亲
     */
    private Integer faId;

    /**
     * 默认地址id
     */
    private Integer defFloor;


}
